You can now specify the size of the image buffer used by your image compressor or decompressor component. When your component calls the ImageCodecPreDecompress or ImageCodecPreCompress function, you can specify the size of the buffer as follows:
This is illustrated in Listing 1 .
Listing 1 Specifying the size of an image buffer for a codec
p->capabilities->flags |= codecWantsSpecialScaling;
p->requestedBufferWidth = 720;
p->requestedBufferHeight = 480;
| Previous | Chapter Contents | Chapter Top | Next |